#https://www.yuque.com/haas506/vp2l2f/gub5l81vaectw5ti
tim.init(period=100)                         # periodic with 100ms period
tim.init(mode=Timer.ONE_SHOT, period=1000)   # one shot firing after 1000ms